package cn.kgm.article.server.entity;

import cn.kgm.core.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * # 技术改变自己 #
 * @author kapi
 * @date 2024-03-15 14:33:45
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "article_info")
@ApiModel(value = "ArticleInfo", description = "文章详情")
public class ArticleInfo extends Entity<Long> {

    /**
     * 文本内容
     */
    @ApiModelProperty(value = "文本内容")
    @TableField(value = "content", condition = LIKE)
    private String content;

    /**
     * 用户ip地址
     */
    @ApiModelProperty(value = "用户ip地址")
    @TableField(value = "ip", condition = LIKE)
    private String ip;

    /**
     * 文章状态:UNDER_REVIEW,待审核
     */
    @ApiModelProperty(value = "文章状态:UNDER_REVIEW,待审核")
    @TableField(value = "state", condition = LIKE)
    private String state;
}
